package sg.edu.nus.iss.vmcs.controller;

import java.util.Observable;
import java.util.Observer;

import sg.edu.nus.iss.vmcs.ui.CanCollectionBox;
import sg.edu.nus.iss.vmcs.ui.DrinkSelectionBox;

public class DispenseController {

	private DrinkSelectionBox drinkSelectionBox;
	
	public DispenseController () {
		
	}
//	
//	public void update(Observable arg0, Object arg1) {		
//	}
	
	public void resetCan() {
		drinkSelectionBox.notifyObservers(new Boolean(true));
		
		CanCollectionBox canCollBox = new CanCollectionBox();
		canCollBox.SetValue(0);
	}

	public void allowSelection(boolean flag) {
		drinkSelectionBox.notifyObservers(new Boolean(flag));
	}
	
	
}